package com.bo.threadMethod;

/**
 * @Author: gpb
 * @Date: 2024/7/14 10:19
 * @Description:
 */
public class CurrentThread {
    public static void main(String[] args) {
        // 获取当前线程的方法
        Thread main = Thread.currentThread();
        System.out.println(main);
        // "Thread[" + getName() + "," + getPriority() + "," +  group.getName() + "]";
        // Thread[main,5,main]
    }
}
